﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Htss.Platform.Core
{
    /// <summary>
    /// 常用正则表达式定义类
    /// </summary>
    public static class RegexText
    {
        /// <summary>
        /// 邮箱正则
        /// </summary>
        public static string Email
        {
            get { return @"^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"; }
        }
        /// <summary>
        /// 正整数包含0
        /// </summary>
        public static string PositiveInteger
        {
            get { return "^[1-9]d*|0$"; }
        }
        /// <summary>
        /// 数字
        /// </summary>
        public static string Digital
        {
            get { return "^[0-9]*$"; }
        }
    }
}
